/*
 * @Author: your name
 * @Date: 2021-02-03 16:57:11
 * @LastEditTime: 2021-02-03 17:12:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wechat-node\routes\folder.js
 */
const router = require('koa-router')();
const {foldersModel} = require('../model/folders');
// 获取文件夹
router.get('/folder', async (ctx, next) => {
    await foldersModel.getFolders(ctx);
});
// 增加文件夹
router.post('/add/folder', async (ctx, next) => {
    await foldersModel.addFolders(ctx);
});
// 删除文件夹
router.post('/delete/folder', async (ctx, next) => {
    await foldersModel.deleteFolders(ctx);
});
// 编辑文件夹
router.post('/edit/folder', async (ctx, next) => {
    await foldersModel.editFolders(ctx);
});
module.exports = router;